﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace LibreriaGestion
{
	public class VisorFichero : IVisorInforme
	{

		#region IVisorInforme Members

		public void muestraInforme(string informe)
		{
			var sr = new StreamWriter( "informe.txt");
			try
			{
				sr.WriteLine(informe);
			}
			catch(Exception e) 
			{
				Console.WriteLine(e.Message);
			}
			finally
			{
				sr.Close();
				sr.Dispose();
			}
		}

		#endregion
	}
}
